package org.anjan.dp.factory;

/**
 * Created by chebbaso on 12/4/14.
 */
public class ShipFactory {
    public EnemyShip getShip(String shipType)
    {

        if(shipType.equals("UFO"))
            return new UFOEnemyShip();
        else if(shipType.equals("ROCKET"))
            return new RocketEnemyShip();
        else
            return null;

    }
}
